$(function(){
    //滚屏加载
    var winH = $(window).height(); //页面可视区域高度 
    var i = 1; //设置当前页数 
	var ul_obj = $('#mould-2list1');//数据追加位置
	var ajax=!1;//是否加载中
    function scrollLoad(){
        var pageH = $(document.body).height(); 
        var scrollT = $(window).scrollTop(); //滚动条top 
        var aa = (pageH-winH-scrollT)/winH; 
        if(aa<0.02){ 
            if (!i || ajax) {
                return false;
            }
            ajax=!0;
            ul_obj.append('<div class="loading" style="text-align:center"><img src="images/loading.gif" alt="" /></div> ');//出现加载图片
            $.getJSON("{:U('Issue/Result/tab1')}",{page:i},function(json){ 
                if(json){ 
                    var str = ""; 
                    $.each(json,function(index,array){ 
	        			str +="<li><div class='mould-2tit'><div class='mould-2info'><div><p class='mould-2infoem'>"
	        			if(zhi1){
	        				str +="<span class='b-f small-div'>"+zhi1+"</span>"
	        			}
	        			if(zhi2){
	        				str +="<span class='y-f small-div'>"+zhi2+"</span>"
	        			}
	        			if(zhi3){
	        				str +="<span class='y-f small-div'>"+zhi3+"</span>"
	        			}
	        			str +="</p><p class='mould-2infoti'><span>"+zhi4+"</span></p></div></div>"
	        			str +="<p class='mould-2time'><span class='font-10 color-85'>"+zhi5+"发布</span></p></div>"
	        			str +='<div class="mould-2con clearfix"><div class="mould-2conleft"><ul><li><p><span class="font-18 ycolor">'+zhi6+'</span></p></li><li><p>项目金额（元）</p></li><li class="mould-2line"></li><li><p><span class="font-15 ycolor">'+zhi7+'个</span>月</p></li><li><p>项目期限</p></li><ul></div><div class="mould-2conmid"><div class="circle"><div class="pie_left"><div class="left"></div></div><div class="pie_right"><div class="right"></div></div><div class="mask ycolor"><p><span class="font-14">￥'+zhi8+'</span><br>可投资</p><p class="hide"><span class="NUM">'+zhi9+'</span>%</p></div></div></div><div class="mould-2conright"><ul><li class="mould-2jl"><img height="100%;" src="images/jiangli.png" alt="奖励"></li><li><p class="b-f mould-2num"><span class="font-15">'+zhi10+'</span></p></li><li class="mould-2line"></li><li class="font-15 ycolor">'+zhi11+'</li><li><p>年利率</p></li><ul></div></div>'
	        			str +="<p class='mould-2bot'><a class='b-f' href='/'>查看详情</a></p>"
	        			str +="</li>"
                        ul_obj.append(str); 
                    }); 
                    i++; 
                    $(".loading").remove();
                }else if(!json){ 
                    i = 0;//设置数据已全部加载
                    $(".loading").html("暂无内容！");
                    return false; 
                } 
            });
            ajax=!1;
        }
    }
})